namespace DotNetNuke.UI.UserControls
{
    using DotNetNuke.Services.Exceptions;
    using DotNetNuke.Services.Localization;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Diagnostics;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class ModuleAuditControl : UserControl
    {
        private string _CreatedByUser;
        private string _CreatedDate;
        protected Label lblCreatedBy;
        private string MyFileName;

        public ModuleAuditControl()
        {
            base.Init += new EventHandler(this.Page_Init);
            base.Load += new EventHandler(this.Page_Load);
            this._CreatedDate = "";
            this._CreatedByUser = "";
            this.MyFileName = "ModuleAuditControl.ascx";
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
        }

        private void Page_Init(object sender, EventArgs e)
        {
            this.InitializeComponent();
        }

        private void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!this.Page.IsPostBack)
                {
                    string str = DotNetNuke.Services.Localization.Localization.GetString("UpdatedBy", DotNetNuke.Services.Localization.Localization.GetResourceFile(this, this.MyFileName));
                    this.lblCreatedBy.Text = string.Format(str, this._CreatedByUser, this._CreatedDate);
                }
            }
            catch (Exception exception1)
            {
                
                Exception exc = exception1;
                DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(this, exc);
                
            }
        }

        public string CreatedByUser
        {
            set
            {
                this._CreatedByUser = value;
            }
        }

        public string CreatedDate
        {
            set
            {
                this._CreatedDate = value;
            }
        }
    }
}

